// AllocDlg.cpp : implementation file
//

#include "stdafx.h"
#include "memList.h"
#include "AllocDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CAllocDlg dialog


CAllocDlg::CAllocDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CAllocDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CAllocDlg)
	m_jobName = _T("");
	m_Size = 0;
	//}}AFX_DATA_INIT
}


void CAllocDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CAllocDlg)
	DDX_Control(pDX, IDC_SPIN1, m_Spin);
	DDX_Text(pDX, IDC_EDIT1, m_jobName);
	DDX_Text(pDX, IDC_EDIT2, m_Size);
	DDV_MinMaxInt(pDX, m_Size, 1, 640);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CAllocDlg, CDialog)
	//{{AFX_MSG_MAP(CAllocDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CAllocDlg message handlers

void CAllocDlg::OnOK() 
{
	UpdateData();
	CDialog::OnOK();
}

BOOL CAllocDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	m_Spin.SetRange(0,640);
//	m_Spin.SetAccel(10,NULL);
	// TODO: Add extra initialization here
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
